<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // 日期对象 => 可以获取和设置时间
    
    // 怎么创建日期对象？
    // 构造函数创建 (获取|设置)

    // (1)获取当前时间
    var date = new Date();
    console.log(date);
    
    var date = new Date("2021-11-11 16:56:45");
    console.log(date);

    var date = new Date(2021,10,11,16,56,45);
    console.log(date);

    var date = new Date(-5645646546513);
    console.log(date);

</script>
</html>